package com.it.pojo;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * 1.类是public
 * 2.所有属性都是公有的
 * 3.存在无参构造
 * 4.所有属性的类型都是可以序列化的.
 *
 * @author code1997
 */
@NoArgsConstructor
@AllArgsConstructor
public class Event {

    public String user;

    public String url;

    public Long timestamp;

    @Override
    public String toString() {
        return "Event{" + "user='" + user + '\'' + ", url='" + url + '\'' + ", timestamp=" + new Timestamp(timestamp) + '}';
    }
}
